package com.javabase.fzr1.Xunhuan;

public class p150zuoye {
    public static void main(String[] args) {
        //输出1-100之间的不能被5整除的数，每5个一行
int count = 0;
        for (int i = 1; i <= 100 ; i++) {
            if(i % 5 != 0){
                System.out.print(i + "\t");
                //"\t":制表符对齐
                count++;
                while(count % 5 == 0){
                    System.out.println(" ");
                    break;
                    //每5个一行,也能把while改成if
                }
            }

    }
    }
}
